home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2003 March / DPPCPRO0303.ISO / Components / Microsoft ASP / _SETUP.1 / ASPWizard.jar / asp / wizard / WizardModelFinish.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-20  |  2.6 KB  |  57 lines

  1. package asp.wizard;
  2.  
  3. import asp.netobjects.nfx.util.ExceptionHandler;
  4. import asp.netobjects.nfx.wizard.Wizard;
  5. import asp.netobjects.nfx.wizard.WizardPageView;
  6. import asp.util.ResourceUtil;
  7. import com.sun.java.swing.ImageIcon;
  8. import java.net.URL;
  9.  
  10. public class WizardModelFinish extends WizardModelAbstract {
  11.    // $FF: synthetic field
  12.    static Class class$asp$wizard$WVPanelFinish;
  13.  
  14.    public WizardModelFinish() {
  15.       this.initImgLeft();
  16.       super.dmCanFinish = true;
  17.       super.dmIsLastPage = true;
  18.    }
  19.  
  20.    public WizardModelFinish(Wizard wizard, String bullet, String info, ImageIcon icon, ExceptionHandler handler) {
  21.       super(wizard, bullet, info, icon, handler);
  22.       this.initImgLeft();
  23.       super.dmCanFinish = true;
  24.       super.dmIsLastPage = true;
  25.    }
  26.  
  27.    public boolean isValid() {
  28.       return true;
  29.    }
  30.  
  31.    protected WizardPageView getViewSingleInstance() {
  32.       return WizardViewFinish.getInstance();
  33.    }
  34.  
  35.    private void initImgLeft() {
  36.       String imgFile = ResourceUtil.getResourceString("asp.wizard.res", class$asp$wizard$WVPanelFinish != null ? class$asp$wizard$WVPanelFinish : (class$asp$wizard$WVPanelFinish = class$("asp.wizard.WVPanelFinish")), "image.pageimage");
  37.       if (imgFile != null && !imgFile.equals("")) {
  38.          URL url = this.getClass().getResource("image/" + imgFile);
  39.          if (url != null) {
  40.             super.dmIcon = new ImageIcon(url);
  41.          }
  42.       } else {
  43.          super.dmIcon = null;
  44.       }
  45.  
  46.    }
  47.  
  48.    // $FF: synthetic method
  49.    static Class class$(String class$) {
  50.       try {
  51.          return Class.forName(class$);
  52.       } catch (ClassNotFoundException forName) {
  53.          throw new NoClassDefFoundError(((Throwable)forName).getMessage());
  54.       }
  55.    }
  56. }
  57.